package com.example.wlzz.repository.mongoRepository;

import com.example.wlzz.entity.mongoEntity.Related;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface RelatedRepository extends MongoRepository<Related,String> {
    Page<Related> findByToUserid(int userid,Pageable pageable);
    List<Related> findByToUseridAndStatus(int toUserid,int status);

    Page<Related> findByUserid(int userid,Pageable pageable);

}
